package com.delianna.bwt.models;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Delio Castillo (jangeador@gmail.com)
 *
 */
public class Lanes implements Parcelable {

	public String maximum_lanes;
	private Lane standardLane;
	private Lane expressLane;

	public Lanes() {
		standardLane = new Lane();
		expressLane = new Lane();
	}

	public void setStandardLane(Lane value) {
		this.standardLane = value;
	}

	public Lane getStandardLanes() {
		return standardLane;
	}

	public void setExpressLane(Lane value) {
		this.expressLane = value;
	}

	public Lane getExpressLanes() {
		return expressLane;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	public Lanes(Parcel in) {
		readFromParcel(in);
	}

	private void readFromParcel(Parcel in) {
		// TODO Auto-generated method stub
		this.expressLane = in.readParcelable(Lane.class.getClassLoader());
		this.standardLane = in.readParcelable(Lane.class.getClassLoader());
		this.maximum_lanes = in.readString();
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		// TODO Auto-generated method stub
		out.writeParcelable(expressLane, flags);
		out.writeParcelable(standardLane, flags);
		out.writeString(maximum_lanes);

	}

	public static final Parcelable.Creator<Lanes> CREATOR = new Parcelable.Creator<Lanes>() {
		public Lanes createFromParcel(Parcel in) {
			return new Lanes(in);
		}

		public Lanes[] newArray(int size) {
			return new Lanes[size];
		}
	};

}
